<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

function go(path: string) {
  router.push(path)
}
</script>

<template>
  <div>
    <van-button type="primary" size="large" @click="go('/about')">
      进入聊天室
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/file')">
      进入文件上传
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/newfile')">
      进入文件上传
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/FileOss')">
      OSS文件上传
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/swiper')">
      swiper
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/test')">
      test
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/i18nView')">
      i18nView
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/ThirdLogin')">
      ThirdLogin
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/resume')">
      resume
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/WebWorker')">
      WebWorker
    </van-button>
    <hr>
    <van-button type="primary" size="large" @click="go('/FormSchema')">
      formschema
    </van-button>
  </div>
</template>
